﻿using MediatR;
using SlaughterItem.Common.Dtos;
using System.ComponentModel.DataAnnotations;
namespace SlaughterItem.API.Application.Commands.Week02.Check_In
{
    public class CheckInAddCommand :IRequest<Result>
    {
        /// <summary>
        /// 进场登记id
        /// </summary>
        [Key]
        public int CheckInId { get; set; }
        /// <summary>
        /// 进场登记编号
        /// </summary>
        [StringLength(50)]
        public string CheckInNo { get; set; }
        /// <summary>
        /// 进场登记时间
        /// </summary>
        public DateTime EnterTime { get; set; }
        /// <summary>
        /// 出场时间
        /// </summary>
        public DateTime GoOutTime { get; set; }
        /// <summary>
        /// 车牌号
        /// </summary>
        [StringLength(50)]
        public string CarNo { get; set; }
        /// <summary>
        /// 供应商/养殖户 外健
        /// </summary>
        public int SupplierId { get; set; }
        /// <summary>
        /// 结算类型 外键
        /// </summary>
        public int SettlementTypeId { get; set; }
        /// <summary>
        /// 进场数量
        /// </summary>
        public int ApproachNum { get; set; }
        /// <summary>
        /// 检疫证号
        /// </summary>
        [StringLength(100)]
        public string QuarantineNo { get; set; }
        /// <summary>
        /// 产地
        /// </summary>
        [StringLength(100)]
        public string OriginAddr { get; set; }
        /// <summary>
        /// 进场批次
        /// </summary>
        [StringLength(10)]
        public string CheckInBatch { get; set; }
        /// <summary>
        /// 送货联系人
        /// </summary>
        [StringLength(50)]
        public string Deliveryman { get; set; }
        /// <summary>
        /// 联系电话
        /// </summary>
        [StringLength(30)]
        public string Phone { get; set; }
        /// <summary>
        /// 身份证
        /// </summary>
        [StringLength(30)]
        public string IdentityCard { get; set; }
        /// <summary>
        /// 进场登记员
        /// </summary>
        [StringLength(30)]
        public string EnterRegistrar { get; set; }
        /// <summary>
        /// 出场登记员
        /// </summary>
        [StringLength(30)]
        public string GoOutRegistrar { get; set; }
        /// <summary>
        /// 检疫证（图片）    上传
        /// </summary>
        [StringLength(300)]
        public string QuarantineImg { get; set; }
        /// <summary>
        /// 进场登记状态       外键
        /// </summary>
        public int CheckInStateId { get; set; } = 0;
        /// <summary>
        /// 备注
        /// </summary>
        [StringLength(300)]
        public string Remark { get; set; }
        /// <summary>
        /// 是否删除
        /// </summary>
        public bool CheckInIsDel { get; set; } = false;
    }
}
